Distance Oracles for Unweighted Graphs: Breaking the Quadratic Barrier with Constant Additive Error
نویسندگان
چکیده
Thorup and Zwick, in the seminal paper [Journal of ACM, 52(1), 2005, pp 1-24], showed that a weighted undirected graph on n vertices can be preprocessed in subcubic time to design a data structure which occupies only subquadratic space, and yet, for any pair of vertices, can answer distance query approximately in constant time. The data structure is termed as approximate distance oracle. Subsequently, there has been improvement in their preprocessing time, and presently the best known algorithms [4, 3] achieve expected O(n) preprocessing time for these oracles. For a class of graphs, these algorithms indeed run in Θ(n) time. In this paper, we are able to break this quadratic barrier at the expense of introducing a (small) constant additive error for unweighted graphs. In achieving this goal, we have been able to preserve the optimal size-stretch trade offs of the oracles. One of our algorithms can be extended to weighted graphs, where the additive error becomes 2 · wmax(u, v) here wmax(u, v) is the heaviest edge in the shortest path between vertices u, v.
منابع مشابه
Faster Approximate Distance Queries and Compact Routing in Sparse Graphs
A distance oracle is a compact representation of the shortest distance matrix of a graph. It can be queried to retrieve approximate distances and corresponding paths between any pair of vertices. A lower bound, due to Thorup and Zwick, shows that a distance oracle that returns paths of worst-case stretch (2k − 1) must require space Ω(n) for graphs over n nodes. The hard cases that enforce this ...
متن کاملFully Dynamic All-Pairs Shortest Paths: Breaking the O(n) Barrier
A fully dynamic approximate distance oracle is a distance reporting data structure that supports dynamic insert edge and delete edge operations. In this paper we break a longstanding barrier in the design of fully dynamic all-pairs approximate distance oracles. All previous results for this model incurred an amortized cost of at least Ω(n) per operation. We present the first construction that p...
متن کاملAdditive Spanners and Distance Oracles in Quadratic Time
Let G be an unweighted, undirected graph. An additive k-spanner of G is a subgraph H that approximates all distances between pairs of nodes up to an additive error of +k, that is, it satisfies dH(u, v) ≤ dG(u, v) + k for all nodes u, v, where d is the shortest path distance. We give a deterministic algorithm that constructs an additive O(1)-spanner with O ( n4/3 ) edges in O ( n2 ) time. This s...
متن کاملDistance Oracles for Sparse Graphs
Suppose you are given a large network, such as the Internet or the US road network. In many practical applications, one might be interested in querying shortest path distances between pairs of nodes of the network. However, attempting to implement a data structure that supports such operations will result either in a large query time, or large space requirement, both of which are undesirable. I...
متن کاملExact Distance Labelings Yield Additive-Stretch Compact Routing Schemes
Distance labelings and compact routing schemes have both been active areas of recent research. It was already known that graphs with constant-sized recursive separators, such as trees, outerplanar graphs, series-parallel graphs and graphs of bounded treewidth, support both exact distance labelings and optimal (additive stretch 0, multiplicative stretch 1) compact routing schemes, but there are ...
متن کامل